/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.datatransferobjects;

import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;

/**
 *
 * @author Priyanka
 */
public class TeamResultDTO {
    
    private String team_name;
    private String team_id;
    private String moduleCode;
    private double evaluationTotal;
    private HashMap<String,Double> evaluationItems;

   public void setEvaluationItems(String key , Double value) {
        evaluationItems.put(key, value);
    }

    public void setEvaluationTotal(double evaluationTotal) {
        this.evaluationTotal = evaluationTotal;
    }
  

    public String getTeam_id() {
        return team_id;
    }

    public String getTeam_name() {
        return team_name;
    }

    public void setTeam_id(String team_id) {
        this.team_id = team_id;
    }

    public void setTeam_name(String team_name) {
        this.team_name = team_name;
    }

   
     public double getEvaluationItems(String key) {        
        return evaluationItems.get(key);
    }

    

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public String getModuleCode() {
        return moduleCode;
    }
    
    
    public double getEvaluationTotal() {
       if(evaluationItems.size()>0){
        Collection c = evaluationItems.values();
        Iterator<Double> itr = c.iterator();                
        while(itr.hasNext())
            evaluationTotal=+itr.next();
      }
       return evaluationTotal;
    }
    
}
